//
//  HMHomeController.m
//  3-15-网易界面（自定义多控制器）
//
//  Created by apple on 15/3/15.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "HMHomeController.h"

@interface HMHomeController ()

@end

@implementation HMHomeController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//   NSLog(@"%@ - viewDidLoad", self.title);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 50;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *ID = @"headline";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    }
    
    cell.textLabel.text = [NSString stringWithFormat:@"%@ - %ld", self.title, indexPath.row];
    
    return cell;
}


@end
